function testImg(img,x,y,step) {
    this.img=new Image();
    this.img.src=img;
    this.img.test=this;
    this.x=x;
    this.y=y;
    this.step=(step||5);
    this.img.onload=this.load;
}
testImg.prototype={
    getXAndY:function () {
        this.width=this.img.width/this.x;
        this.height=this.img.height/this.y;
    },
    load:function () {
        this.test.getXAndY();
    }
};

function loadImg() {
    personImgs.push(new testImg("src/1.png",1,1));
    personImgs.push(new testImg("src/2.png",1,1));
    // personImgs.push(new testImg("src/66RPG_Pic_100_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_103_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_107_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_110_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_113_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_116_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_119_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_123_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_126_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_129_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_132_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_135_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_138_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_139_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_142_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_145_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_3006_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_3019_1 副本.png",5,12));
    // personImgs.push(new testImg("src/66RPG_Pic_3025_1 副本.png",5,12));
    // personImgs.push(new testImg("src/boy,红衣.png",8,8));
    // personImgs.push(new testImg("src/person9.png",8,8));
    // personImgs.push(new testImg("src/乞丐.png",8,8));
    // personImgs.push(new testImg("src/书生,箱.png",8,8));
    // personImgs.push(new testImg("src/书生.png",8,8));
    // personImgs.push(new testImg("src/买菜.png",8,8));
    // personImgs.push(new testImg("src/云,御剑.png",8,8));
    // personImgs.push(new testImg("src/仇.png",8,8));
    // personImgs.push(new testImg("src/光头,丧气包.png",8,8));
    // personImgs.push(new testImg("src/剑仙.png",8,8));
    // personImgs.push(new testImg("src/大BOSS黑白发.png",8,8));
    // personImgs.push(new testImg("src/奥利维尔8方8帧.png",8,8));
    //personImgs.push(new testImg("src/女,1.png",8,8));
    //personImgs.push(new testImg("src/女,2.png",8,8));
    // personImgs.push(new testImg("src/女,3.png",8,8));
    // personImgs.push(new testImg("src/女,彩带.png",8,8));
    // personImgs.push(new testImg("src/女,手.png",8,8));
    personImgs.push(new testImg("src/女,红衣.png",8,8));
    personImgs.push(new testImg("src/女,红衣run.png",8,8));
    personImgs.push(new testImg("src/女,蓝.png",8,8));
    personImgs.push(new testImg("src/女,蓝run.png",8,8));
    personImgs.push(new testImg("src/女,黄.png",8,8));
    personImgs.push(new testImg("src/女,黄run.png",8,8));
    // personImgs.push(new testImg("src/女1.png",8,8));
    // personImgs.push(new testImg("src/官.png",8,8));
    // personImgs.push(new testImg("src/官兵.png",8,8));
    // personImgs.push(new testImg("src/小和尚,佛珠.png",8,8));
    // personImgs.push(new testImg("src/小和尚,扇子.png",8,8));
    // personImgs.push(new testImg("src/小孩,高跷.png",8,8));
    // personImgs.push(new testImg("src/小孩哭.png",8,8));
    personImgs.push(new testImg("src/小江云.png",8,8));
    personImgs.push(new testImg("src/小江云run.png",8,8));
    personImgs.push(new testImg("src/小江瑕.png",8,8));
    personImgs.push(new testImg("src/小江瑕run.png",8,8));
    // personImgs.push(new testImg("src/小狐狸精.png",8,8));
    personImgs.push(new testImg("src/小若湖.png",8,8));
    personImgs.push(new testImg("src/小若湖run.png",8,8));
    // personImgs.push(new testImg("src/小虾.png",8,8));
    // personImgs.push(new testImg("src/提妲8方8帧.png",8,8));
    // personImgs.push(new testImg("src/明特世话.png",4,8));
    // personImgs.push(new testImg("src/明特女仆.png",4,8));
    // personImgs.push(new testImg("src/明特幼龙.png",4,8));
    // personImgs.push(new testImg("src/明特爱哭鬼.png",4,8));
    // personImgs.push(new testImg("src/明特爱女王.png",4,8));
    // personImgs.push(new testImg("src/科洛丝8方8帧.png",8,8));
    // personImgs.push(new testImg("src/约修亚8方8帧.png",8,8));
    // personImgs.push(new testImg("src/艾丝蒂尔8方8帧.png",8,8));
    // personImgs.push(new testImg("src/金8方8帧.png",8,8));
    // personImgs.push(new testImg("src/阿加特8方8帧.png",8,8));
    // personImgs.push(new testImg("src/雪拉扎德8方8帧.png",8,8));
    // console.log(personImgs.length);
}